package 装饰者模式;

/**
 * @author zzs
 * @ClassName Mocha.java
 * @Description
 * @createTime 2022年05月10日 19:57:00
 */
public class Mocha extends CoffeePacker {

    public Mocha(Coffee coffee) {
        super(coffee);
    }

    @Override
    public Integer cost() {
        return 1 + coffee.cost();
    }

    @Override
    public String description() {
        return coffee.description() + "-" + "摩卡";
    }

}
